home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PBoolCommand.h < prev    next >
C/C++ Source or Header  |  1996-10-15  |  2KB  |  64 lines

  1. /*
  2.  *--- PBoolCommand.h ------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:53 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *-------------------------------------------------------------------------
  8.  */
  9. #ifndef __PBoolCommand__
  10. #define __PBoolCommand__
  11.  
  12. #include "PCommand.h"
  13.  
  14. template <ePMCommand COMMAND>
  15. class PBoolCommand
  16. {
  17.  
  18. public:
  19.  
  20.     PBoolCommand(PMBool theBool) { PCommand command(COMMAND, (PMBool)theBool); }
  21.  
  22. private:
  23.  
  24.     PBoolCommand();
  25. };
  26.  
  27. typedef PBoolCommand<pm_autoflow>            PAutoflow;
  28. typedef PBoolCommand<pm_changewindow>        PChangeWindow;
  29. typedef PBoolCommand<pm_colorpalette>        PColorPalette;
  30. typedef PBoolCommand<pm_controlpalette>        PControlPalette;
  31. typedef PBoolCommand<pm_deleteunusedlayers> PDeleteUnusedLayers;
  32. typedef PBoolCommand<pm_displaynonprinting>    PDisplayNonPrinting;
  33. typedef PBoolCommand<pm_displayspecial>        PDisplaySpecial;
  34. typedef PBoolCommand<pm_displaystylenames>    PDisplayStyleNames;
  35. typedef PBoolCommand<pm_findwindow>            PFindWindow;
  36. typedef PBoolCommand<pm_guides>                PGuides;
  37. typedef PBoolCommand<pm_hyperlinkpalette>    PHyperlinkPalette;
  38. typedef PBoolCommand<pm_lock>                PLock;
  39. typedef PBoolCommand<pm_lockguides>            PLockGuides;
  40. typedef PBoolCommand<pm_masteritems>        PMasterItems;
  41. typedef PBoolCommand<pm_masterpagepalette>    PMasterPagePalette;
  42. typedef PBoolCommand<pm_nobreak>            PNoBreak;
  43. typedef PBoolCommand<pm_nonprinting>        PNonPrinting;
  44. typedef PBoolCommand<pm_pasteremembers>        PPasteRemembers;
  45. typedef PBoolCommand<pm_printscreenrgbs>    PPrintScreenRGBs;
  46. typedef PBoolCommand<pm_printepspreviews>    PPrintEPSPreviews;
  47. typedef PBoolCommand<pm_redraw>                PRedraw;
  48. typedef PBoolCommand<pm_renderclip>            PRenderClip;
  49. typedef PBoolCommand<pm_rulers>                PRulers;
  50. typedef PBoolCommand<pm_scrollbars>            PScrollBars;
  51. typedef PBoolCommand<pm_showerroralert>        PShowErrorAlert;
  52. typedef PBoolCommand<pm_snaptoguides>        PSnapToGuides;
  53. typedef PBoolCommand<pm_snaptorulers>        PSnapToRulers;
  54. typedef PBoolCommand<pm_spellwindow>        PSpellWindow;
  55. typedef PBoolCommand<pm_stylepalette>        PStylePalette;
  56. typedef PBoolCommand<pm_suppressautosave>    PSuppressAutosave;
  57. typedef PBoolCommand<pm_suppresspi>            PSuppressPI;
  58. typedef PBoolCommand<pm_toolbox>            PToolbox;
  59. typedef PBoolCommand<pm_zerolock>            PZeroLock;
  60.  
  61. #endif
  62.  
  63. // end of PBoolCommand.h
  64.